<template>
	<view>
		<view class="topbar">
			<navigator url="/pages/find/find" open-type="switchTab" class="back"> < </navigator>
			<text>文章详情</text>
		</view>
		<view class="main">
			<text v-html="content"></text>
		</view>
	</view>
</template>

<script>
	import { articleDetail } from '../../../api/find/article.js'
	export default{
		data(){
			return{
				content:''
			}
		},
		methods:{
			getArticleDetail(){
				
			}
		},
		onLoad(option) {
			// console.log(option)
			articleDetail({
				id:option.id
			})
			.then(res=>{
				console.log(res)
				this.content = res.data.data.content2
			})
		}
	}
</script>

<style lang="scss" scoped>
.topbar{
		position: fixed;
		left: 0;
		top: 0;
		background-color: #354e44;
		color: #fff;
		width: 100%;
		height: 44px;
		line-height: 44px;
		text-align: center;
		z-index: 998;
		.back{
			font-size: 24px;
			position: absolute;
			left: 20px;
		}
}
.main{
	background-color: #f1ece7;
	width: 100%;
	height: calc(100% - 44px);
	margin-top: 64px;
	padding: 0 20px;
	box-sizing: border-box;
}
</style>
